package com.yuzhitong.shapi.model;

import com.yuzhitong.shapi.base.Contents;
import com.yuzhitong.shapi.base.net.BaseListBean;
import com.yuzhitong.shapi.bean.SearchMovieBean;
import com.yuzhitong.shapi.contract.SearchMovieContract;
import com.yuzhitong.shapi.net.RetrofitClient;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/5/10  20:32
 * Description:
 * 直搜搜索
 */
public class SearchMovieModel implements SearchMovieContract.Model {
    @Override
    public Observable<BaseListBean<SearchMovieBean>> getMovieListByName(Map<String, Object> par) {
        return RetrofitClient.getInstance().getApi().getMovieListByName(Contents.BASE_URL + "/videos/getSoUrl", par);
    }
}
